Skip to content

Vesting: expose pending admin state and add cancel path - #416

Merged
zachyo merged 2 commits into
soropad:masterfrom
Tobiloba0:vesting-pending-admin
Aug 3, 2026
Merged

Vesting: expose pending admin state and add cancel path#416
zachyo merged 2 commits into
soropad:masterfrom
Tobiloba0:vesting-pending-admin

Conversation

@Tobiloba0

Copy link
Copy Markdown
Contributor

Closes #363
This PR fixes the vesting contract’s invisible two-step admin transfer flow by making the pending admin readable on-chain and adding a real cancellation path for the current admin.
Changes:
Added pending_admin() to contracts/vesting so callers can confirm whether a transfer is in progress.
Added cancel_admin_proposal() so the current admin can clear a pending transfer without overwriting it.
Added unit coverage for pending admin visibility, canceling a proposal, and accepting after re-proposal.
Reused a shared pending-admin banner in the frontend so vesting and token admin flows present the same transfer-in-progress state consistently.
Surfaced vesting pending-admin status in the vesting lookup UI.
Validation:
cargo test -p soroban-vesting

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Tobiloba0 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@zachyo
zachyo merged commit 8fc9fbb into soropad:master Aug 3, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vesting: no pending_admin() getter, so the two-step transfer is invisible

2 participants